import 'package:flutter/material.dart';
import '../utils/util.dart';

class TPMiddlewares extends GetMiddleware {
  @override
  RouteSettings? redirect(String? route) {
    // if (route == RouterPath.means_detail ||
    //     route == RouterPath.qrcodeView ||
    //     route == RouterPath.search) {
    //   if (!UserController().isLogin) {
    //     return const RouteSettings(name: RouterPath.login);
    //   }
    // }
    return super.redirect(route);
  }
}
